package Java.A;

public class Circle implements Ishape {
    Point ptCenter;
    int radius;

    public Circle(Point center, int r) {
        this.ptCenter = center;
        this.radius = r;
    }

    @Override
    public double perimeter() {
        return 2 * Math.PI * radius;
    }

    @Override
    public double area() {
        return Math.PI * radius * radius;
    }

    @Override
    public void draw() {
        System.out.println("圆形：");
    }

    public static void main(String[] args) {

    }

}
